import type { CategoryItem } from '@/indexDB/index'


// ----------A开始 id:1-18-------

/**
 * A-行业;
 * 父id: 2 ;
 * id:3-10;
 */
export const INDUSTRY_LIST: CategoryItem[] = [
  {
    // 二级分类-A-行业
    id: 2,
    parentId: 1,
    name: '行业',
    code: 'industry',
    parentCode: 'a',
    level: 2,
  },
  // 三级分类开始
  {
    id: 3,
    parentId: 2,
    level: 3,
    parentCode: 'industry',
    name: '医药',
    code: 'medicine'
  },
  {
    id: 4,
    parentId: 2,
    level: 3,
    parentCode: 'industry',
    name: '养老',
    code: 'pension'
  },
  {
    id: 5,
    parentId: 2,
    level: 3,
    parentCode: 'industry',
    name: '消费',
    code: 'consumption'
  },
  {
    id: 6,
    parentId: 2,
    level: 3,
    parentCode: 'industry',
    name: '信息',
    code: 'information'
  },
  {
    id: 7,
    parentId: 2,
    level: 3,
    parentCode: 'industry',
    name: '金融',
    code: 'finance'
  },
  {
    id: 8,
    parentId: 2,
    level: 3,
    parentCode: 'industry',
    name: '证券',
    code: 'securities'
  },

  {
    id: 9,
    parentId: 2,
    level: 3,
    parentCode: 'industry',
    name: '传媒',
    code: 'media'
  },
  {
    id: 10,
    parentId: 2,
    level: 3,
    parentCode: 'industry',
    name: '证券保险',
    code: 'securitiesInsurance'
  },
]

/**
 * A-中小盘;
 * 父id: 11;
 * id:12-13;
 */
export const SMALL_MEDIUM_LIST: CategoryItem[] = [
  // 二级分类-A-中小盘
  {
    id: 11,
    parentId: 1,
    name: '中小盘',
    code: 'smallAndMediumPlate',
    parentCode: 'a',
    level: 2,
  },
  {
    id: 12,
    parentId: 11,
    level: 3,
    parentCode: 'smallAndMediumPlate',
    name: '中证500',
    code: '500'
  },
  {
    id: 13,
    parentId: 11,
    level: 3,
    parentCode: 'smallAndMediumPlate',
    name: '创业板',
    code: 'gem'
  }
]

/**
 * A-价值;
 * 父id: 14;
 * id:15;
 */

export const VALUE_LIST: CategoryItem[] = [
  {
    // 二级分类-A-价值
    id: 14,
    parentId: 1,
    name: '价值',
    code: 'value',
    parentCode: 'a',
    level: 2,
  },
  {
    id: 15,
    parentId: 14,
    level: 3,
    parentCode: 'value',
    name: '红利',
    code: 'dividends'
  }
]


/**
 * A-大盘;
 * 父id: 16;
 * id:17-18;
 */

export const LARGE_LIST: CategoryItem[] = [
  {
    id: 16,
    parentId: 1,
    name: '大盘',
    code: 'largePlate',
    parentCode: 'a',
    level: 2,
  },
  {
    id: 17,
    parentId: 16,
    level: 3,
    parentCode: 'largePlate',
    name: '沪深300',
    code: '300'
  },
  {
    id: 18,
    parentId: 16,
    level: 3,
    parentCode: 'largePlate',
    name: '上证50',
    code: '50'
  },
]

export const A_LIST: CategoryItem[] = [
  {
    id: 1,
    name: 'A股',
    code: 'a',
    level: 1,
  },
  ...INDUSTRY_LIST,
  ...SMALL_MEDIUM_LIST,
  ...VALUE_LIST,
  ...LARGE_LIST
]


// ----------A结束 id: 1-18-------
